package com.qf.mapper;

import com.qf.entity.AttendanceRecordsDTO;
import com.qf.entity.AttendanceRecordsVO;

import java.util.List;

public interface AttendanceRecordsMapper {
    // 模糊查询+分页
    List<AttendanceRecordsVO> findAll(AttendanceRecordsDTO attendanceRecordsDTO);

    // 统计所有考勤
    AttendanceRecordsVO getAttendanceStats();

    // 上班打卡
    Boolean checkIn(AttendanceRecordsDTO attendanceRecordsDTO);
    // 下班打卡
    Boolean checkOut(AttendanceRecordsDTO attendanceRecordsDTO);

    // 判断今天上午是否已经打卡
    Boolean hasCheckedIn(AttendanceRecordsDTO attendanceRecordsDTO);

    // 判断今天上午是否已经成功打卡
    Boolean hasCheckedInSuccessfully(AttendanceRecordsDTO attendanceRecordsDTO);

    // 判断今天下午是否已经打过卡
    Boolean hasCheckedOut(AttendanceRecordsDTO attendanceRecordsDTO);
}
